package com.mini.core.utils;

import com.mini.core.BaseEntity;
import com.mini.core.grammar.Record;

public class MiniUtil {
	public static boolean isBaseEntity(Class clazz){
		boolean findit = false;
		for(;clazz!=Object.class;clazz=clazz.getSuperclass()){
			if(clazz.getName().equals(BaseEntity.class.getName())){
				findit = true;
				break;
			}
		}
		return findit;
	}
	
	public static boolean isRecord(Class clazz){
		boolean findit = false;
		for(;clazz!=Object.class;clazz=clazz.getSuperclass()){
			if(clazz.getName().equals(Record.class.getName())){
				findit = true;
				break;
			}
		}
		return findit;
	}
}
